<template>
  <div class="container">
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page" :page-sizes="pageSizes" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="100">
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: ["page", "pageSize", "pageSizes"],
  methods: {
    handleSizeChange (val) {
      console.log(`每页 ${val} 条`);
      this.$emit("changPageSize", val)
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`);
      this.$emit("changPage", val)
    }
  },
  data () {
    return {
      currentPage4: 1
    };
  }
}
</script>

<style lang="less" scoped>
.container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: right;
}
</style>